﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace class1
{//可以在CookRobot中添加一个代表菜的类型的字段，用枚举类型；
    enum menu
    {
        红烧鸡爪,
        佛跳墙,
        凉拌黄瓜,
        惠灵顿牛排

    }
    class CookRobot : Robot
    {
        private menu cook;
        public menu Cook
        {
            get { return this.cook; }
            set { this.cook = cook; }
        }
        public CookRobot(string name, menu cook)
            : base(name)
        {
            this.cook = cook;
        }

        public CookRobot()
        {
        }

        public override void Working()
        {
            Console.WriteLine("你好，我是："+this.name);
            Console.WriteLine("正在为你服务");
            Console.WriteLine("请选择你所点的菜："+ this.cook);
        }
    }
}
